import { commonRequest } from '@/api/commonHttp';

// 商品开发需求 - 开发需求池 - 列表查询
export const getPagerService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReqDetail/getPager',
  type: 'post',
  data,
  loadingFn
})

// 商品开发需求 - 开发需求池 - 导出
export const exportTemplateService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReq/exportTemplate',
  type: 'post',
  data,
  loadingFn,
  isExport: true,
  isFormData: true
})

// 商品开发需求 - 开发需求池 - 暂不开发
export const notDevelopService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReqDetail/notDevelop',
  type: 'post',
  data,
  loadingFn
})

// 商品开发需求 - 开发需求池 - 取消开发
export const cancelFromReqService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReqDetail/cancelFromReq',
  type: 'post',
  data,
  loadingFn
})

// 商品开发需求 - 开发需求池 - 提交
export const commitService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReq/commit',
  type: 'post',
  data,
  loadingFn
})

// 商品开发需求 - 开发需求池 - 行业下拉查询
export const getDropDownListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/industry/getDropDownList',
  type: 'get',
  data,
  loadingFn
})

// 商品开发需求 - 开发需求池 - 行业导出
export const industryExportService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/industry/export',
  type: 'post',
  data,
  loadingFn,
  isExport: true
})

// 商品开发需求 - 开发需求池 - 行业导入
export const industryImportUrl = 'sysback/product/industry/import'

// 商品开发需求 - 开发需求池 - 潜在商品数据分析带入数据查询
export const getListFromPotentialAnalysisService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReq/getListFromPotentialAnalysis',
  type: 'post',
  data,
  loadingFn,
})

// 商品开发需求 - 开发需求池 - 订货明细信息查询
export const getOrderDetailListService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReqDetailSku/getOrderDetailList',
  type: 'get',
  data,
  loadingFn,
})

// 商品开发需求 - 开发需求池 - 潜在订货明细信息查询
export const getVoListByUniqueKeysService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/potentialAreaOrder/getVoListByUniqueKeys',
  type: 'post',
  data,
  loadingFn,
})

// 商品开发需求 - 开发需求池 - 列表导出
export const devReqDetailExportService = (data, loadingFn) => commonRequest({
  url: '/sysback/product/devReqDetail/export',
  type: 'post',
  data,
  loadingFn,
  isExport: true
})
